<%@ page import="java.util.Date" %>
<%@ page import="java.text.DateFormat" %><%--
  Created by IntelliJ IDEA.
  User: 10799
  Date: 2018/12/7
  Time: 20:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>学生选课系统</title>
    <link rel="stylesheet"type="text/css" href="statics/css/initialition.css">
    <link rel="stylesheet"type="text/css" href="statics/css/index.css">
</head>
<body>
<div id="cqr">
    <%@ include file="header.jsp"%>
    <div class="section">
        <h3>欢迎使用选课系统</h3>
        <%
            String userId="";
            String username="";
            try{
                userId=session.getAttribute("userId").toString();
                username=session.getAttribute("username").toString();
            }catch (Exception ex){
                response.sendRedirect("login.jsp");
            }
        %>
        <ul>
            <li>用户ID：<%=userId%></li>
            <li>用户名：<%=username%></li>
        </ul>
    </div>
</div>
</body>
</html>
